package com.li.hello.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lixiang
 * @version 1.0
 * @ClassName TestController
 * @Description: TODO
 * @date 2019/4/4 10:59
 */
@RestController
public class TestController {

    @RequestMapping("/test1")
    public void test1(@RequestParam String name) {
        System.out.println(name);
    }

    @RequestMapping("/test2")
    public String test2() {
        return System.getProperty("os.name");
    }
}
